package com.swings.application;

import javax.swing.JFrame;

import org.apache.log4j.Logger;

import com.swings.base.UtilityBaseFrame;

/**
 * <p>
 * <b>Overview:</b>
 * <p>
 * 
 * 
 * <pre>
 * Creation date: Feb 16, 2015
 * @author Amit Kshirsagar
 * @version 1.0
 * @since
 * 
 * <p><b>Modification History:</b><p>
 * 
 * 
 * </pre>
 */

public class MyUtilityApplication {
	static Logger log = Logger.getLogger(MyUtilityApplication.class.getName());

	public static void main(String[] args) {
		MyUtilityApplication myUtilityApplication = new MyUtilityApplication();
		myUtilityApplication.initiateFrame();
	}

	public void initiateFrame() {
		UtilityBaseFrame myApplicationFrame = new UtilityBaseFrame();
		myApplicationFrame.setTitle("MyUtilityApplication");
		myApplicationFrame.buildFrame();
		myApplicationFrame.show(true);

		LoginUtilityPanel loginBasePanel = new LoginUtilityPanel();
		loginBasePanel.buildPanel("LoginPanel");
		loginBasePanel.setMainFrame(myApplicationFrame);
		myApplicationFrame.addTabbedPanel(loginBasePanel);

		CaseSignalUtilityPanel caseSignalBasePanel = new CaseSignalUtilityPanel();
		caseSignalBasePanel.buildPanel("CaseSignal");
		caseSignalBasePanel.setMainFrame(myApplicationFrame);
		myApplicationFrame.addTabbedPanel(caseSignalBasePanel);

		myApplicationFrame.setSelected("CaseSignal");

		myApplicationFrame.setExtendedState(myApplicationFrame
				.getExtendedState() | JFrame.MAXIMIZED_BOTH);
	}
}
